removed end event @ streamSocket (major bugfix)
minor code fixes