fixed an XML output limit check, and playing with bases terms. not at a good spot yet...