added functions for save/loading ministate