make subcase repeats work in the backend