fixing port check now that it returns host