solved the xml reader problem