during such time he was appointed general