add correct protocol to console log