efficiency and command merging