read problem debugging