untested key saving and loading