use parseInt for ports