move access token reads to the file