parsing port number when changed