use twisted to capture the lines sent from the container