fix duplicate connections - closes #1