finally fixed sso