prepare Namespace and inheritage for controllers