added one more thread for server(tcp listener)