small fixes
added connection status monitoring