bugfixes and simplifications
removed nasty bug in signal()
unfied parser and server_parser