port logging
reordered lines
added port setting