add autosave functionality to cargo loader