finally got the parser code working...