r963: expose mask_level