refmasks