add multi connection
add test and bugfixes
add tests and bugfixes
Merge branch 'feature/multiconnections'