create token file TODO: - add comments