fix bug
add https support