nane2resource is now more flexible when type is not given though this will cost performance