moved port log into callback