merged queu and tcp server