changed oauth_factory to create_oauth name in helper function