save before you commit