update coinflip and dataflow