in 1861 he joined the colorado cavalry upon the outbreak of the american civil war, and was later assigned to counterespionage for the union army, tracking confederate spies, investigating gold smuggling and similar crimes.