fixed a bug(?) where passing the fresh thread context got optimized out by the compiler (?)