cut down cpu usage from 30% to 0.5%