commit current changes, prepare for text engine rewrite