fixed leaked globals
fixed inonultary lexer sharing