add last handler redirecting
Fix the mid route handling