adding local storage to lex