move lexmap constructor to lexmap module