refactor hardcoded port number