add a configurable mask to a modifier so that it only operates on specific stages