stricter error checking when adding to queues