formatting
sockets with pendingData from earlier bugfix