change m_connected to protected