modified debug mode to display more information during ajax call