more error handling on ajax requests