made a workaround to instead have a callback for autosave