some minor updates to make kruskals runnable