adding error handling if the user doesn't provide an access token file