add simple dump/load functions.
first delete version (not working)