add dispatch_counter, check queue after elv_sort