fix parsing of multi-line routes