actually, mark pristine just BEFORE saving