make sure part is saved on quit