added workflow gen code