changes to findConnections

- change implementation again, hopefully last time.