basic routing and regex recognition