optimize logging a little
adding tcp server too
better errors reporting
read tcp data