startup script improvements for npm