wired together run_function for loopjit