refactor out twitter_api call