callback error from exported function