fix https, issue #19

Should fix issue #19