cleanup return values and relax the addChild method