migrated from cpickle serialization to json serialization. It's basically more secure and upgrade-friendly.