switchRoles control logic in place