fixed a couple of newly introduced bugs, removed last call to getConnectionIds