if ajax fails, add reason