This + only pay taxes where the company is founded, not where you live at that moment in time.
That's what the personal income tax is for.. and all the other taxes payed by the individual.
That way countries can compete in being the best environment for companies.