base work for varnish 3 compatibility