add option to validate data when packing objectsx