first init work for http proxy