fixed page count by refactoring xml handler to run on all boxes