new version with a full set of new send and write operations for lines (basically strings ending with \n)