adds run_threaded; integration test