simplified the route matching, remains should now also give back the expected remains
supress notice on output buffer