improve sso system and rollback the  dept info