added support for multiple routes and source directories