Change some paths, and optionally pass port
toInt.toOption done better