refact with respect to npm