added a connection confirmation step in order to avoid zombie clients