create opt expr class
enable batch mode
minor changes