send and receive in blocks
temporary make calls to localhost
added null terminator to cumulative buffer