updated WorkflowEngine.Instance to WorkflowEngine.instance