add generate variables to command struct
moved status variables to command struct