handle new connection sub