a bit more code for seeing the intermediate repl_fun steps