clean version of thread osc, code only