simplify state validation for directories