handle :kw for nils