add support for nested controllers