fetch nic_index in the right place