add thread safety to connection enumeration