added stuff to disconnectNode