fix nesting prefixes. fix resource controller names with prefixes.