several bugs, restart queue, rerun task, new index, optimized query