updated for npm