working ou the kinks for addMask(), which is likely to be the most difficult