switched to storing data using json instead of pickle.