there were two main positions ; the legatus legionis was an ex-praetor given command of one of rome 's elite legions , while the legatus propraetor was an ex-consul , who was given the governorship of a roman province with the magisterial powers of a praetor , which in some cases gave him command of four or more legions .