fix cmd to respect order