direct callback on error