switch to npm module