struggling with async startup for npm calls