updated npm and n helpers