impl: selecting chief and mage

Closes #26 #27