convert to npm scripts