slave blocker function refractored