might translate updatelexer script to J