saving and loading now works