port validation methods above class methods