add getMask, should now calculate offsets correctly