slibing selector, optimise lexer logic