fixing varnish implementation