updated for npm publishing