added mask support for felixrefine