modified AjaxRequest class to not have as many exceptions