net.connect should pass path as arguments