replace the save and load method with load and save from jsonfiles methods.