removed buf struct from gen command struct