updated some bugs with npm packages