allow mask with a pattern (like pop_group provides)