updating client to support more than one connection