implementation of network state plugin