pass connection as kw