pass port correctly