move to a single XMLHttpRequest object