fix protocol & URL https support

adding helper