updated for npm2