added ability to add behaviour to a child