update the order of some commands