add getNames and changing of the socket buffer