change port from string to int