added save methods to datastore