added procedural store and load functions as free functions