making autowire more tolerant of not having routes or service directories defined