refine xml reader some more