added global flag to new npm packages