rewrite with new versions of npm modules