switch from json to gob for reroute cookies