implementing load and save commands