fixed up for npm