fixing routes and relations