add https proxy
clean up the parts that work