first version that uses tcp instead of zeromq