Use new connect api

Authored by mlaurent on Apr 22 2019, 12:20 PM.