update arguments of error callback.
minimize dependencies.