add working error handling to ajaxisfication