saving and loading works, needs to be cleaned