added simple connection functionality