optionally have the validation, and if the ref is missing then throw an error for object creation / validation