fixes for oauth