some rather crude connection stat collecting