switched to limpl
fixed bug in lex.c