handle double connections