edit the minion file automatically