proper warning for invalid kind