take in custom parameter for port