USe const'ref + use new connect api

Authored by mlaurent on Apr 23 2019, 11:22 AM.