optionize gen_output, rand_pushes