reorganize the command list from the genx script