fixed NL parser
added lookup function