changed the threading architecture to remove queue to increase perf