Star formation in NGC 6334 I and I(N)