inconsistent error callback