add docs for enforceModality