multiple connections; bugfixes