added support of https protocol