debug output cleanup
soem more work on the socket code, and more output cleanup