tom: use host,port from config