changed ctx.node.runtime to ctx.instance.runtime