partially implement contained (with validation errors)