allow both http and https host urls. following PR comments