new version with dirRouterBuilder