refactoring
put dispatcher into Connection
handling connection closure
windows line endings can get knotted :angry: