add oltp parsing and flush function