added save and load on vm