added wellformedness check of prepped records