save a version using dynamic loading of scripts
save before sleep