update the code to latest dynflow