cleaned up get_word, still needs token