updated protocol & added https example