grextras: save a ref to the input_msg while inspecting