Just in case you are not aware - this is just a refactor of the former code which relied on readString (e.x. reading until linebreak). Thats why it is so ugly ... But sure i try to clean it up once i have some time again ...