more error handling
expanding unit tests for tcp streams
- adding IO tests