prework for codepath