more debugging
minor code cleanup
delete trailing whitespace
move parsing of stream to session as there needs to be only one parser per c2s instance