capturedefs -> unitdefs