replacement for bin/parser.pl