add https support & remove daemon mode