some work on connection class