add conditional for port number