route and handler parsing