split up assign_queue_commands