used handler for omniauth code, cleanup, fixes