replace cmd calls