implement add connections, todo: remove and tests
todo: remove connections and test code