remove dupe connect code