some code cleanup after adding, then finally removing npm support