added connection class
work in progress