proper subclass of namedtuple
fix and tests for connection class