can now specify filepaths to save json and pck files in