save changes before a commit, silly me