handle ext error