changed port initialization