better use of static mappings and root routing