build bugfixes (mostly around npm)