adding some validation to the retrieving of routing-data.txt file