reverted to pickling instgead of JSON: json is unable to handle many of the python's data types