fix varnish init and copy config