added debug log for npm