better handle to unsaved buffer