support proper className for $addChild()