handle miteRepo as a promise