PERF: return NA for bad data
WIP: cv groups