changes for node insertion flow