add network listener.