improve parsing of routing file
add missing import
add missing return