update for npm compatibility
update for npm compatibility