made host null terminated