Use new connect api

Authored by mlaurent on Apr 26 2019, 6:47 AM.