preparation to http:// support
more preparaiton to http support