Use new connect api

Authored by mlaurent on Apr 22 2019, 5:40 PM.