replace autoClose to delimitMate