Adapt to new go-dynect api