support for custom mask script handler