make dump of html details optional and $range_size configurable