adding a way to generate a root controller