i was worried about `kwargs['params']` being None, but that doesn't happen in practice.  fixed.