fixed backwards isConnected bug; logging improvements