lots of munging of token for file completions