added detect_nic (source and bin)