Fix http handlers to declare queues