make helper methods for oauth