get rid of m_inputBuffer