adjust port and log