added stim_test_loop to explore frame dropping