avoid forgetting virtualnode when performing discovery
modified deploy with discovery api