basic tokeniser working