add support for vector masks in mask determination