generalized the queue changes so that it detects if the trace has queue info and uses it, otherwise runs as normal