extended the parser to properly handle binary data