change queue#options to queue#metadata