serialize the custom field data, and handle checkboxes much better