added option to run with https