handle callback err with node style