modified loggregator to use the ConnectionManager