making https / http compliant