added support for cloning multiple children