added loading and saving json