refactor https supporting;