support more SMOR grammar versions