Ported goem connector to newer API
Ported code to new api.