hotfix to add https and https agent