added global flag to support using globally installed npm packages as services