pgen_echo6_writer re-written correctly