switched to use json instead of xml in reader