add queue_size argument to Publisher