should now save on exit, not tested on device