token_file fix