removed calls to get_child from outside the stream_handler blocks to maintain correct streaming behavior