add FREEZE/THAW/TO_JSON helpers