adapt for omniauth