added some saving/loading capabilities