added support of cost option in repos