Use mach.map instead of mach.urlMap
Make mach.file behave as other middleware