fixed tracking of number of open connections in pool