refactoring & npm