new connection phase logic