updates to connection package

client hangs when reading stream