added connection logging