added https option fixed #46