added return error on `cb=true`