had to switch the sleep back to sched_yield, performance was atrocious