comment out debug printing. fix minor issue in handing out nodes