make npm swap do what i expect