working on fixing oauth2 code