move rest lexer to gen root