added naive 'connect' feature