replace error emitting on methods with callback.