enhanced callback handling - protect from infinite waiting (no callback call in parser) and multiple callback calls in parser
added configurable parser timeout