pass connection implicitly