update port logic to support port 80