why does taskscheduler need json or cereal?