better error handling for getting request tokens