better error handling for ajax reloader