updated nm plugin to NetworkManager API changes