moved sending of the tcp-header behind the lookup for the topic