refactor routing for companies