fix this vs self in connection class