update maskAllowLevel to maskAllowUnknownLevels