trailname expansions rewrite, nearly done with trail conversion script rewrite