context.core.setConfigPath(context.configPath).then(function () {
          // config path is ok so confiure before start
          context.core.configure().then(function () {
            // start the app
            context.core.start().then(function () {