final public static function detectAppType(string $appname):string
    {
        $apptype = 'none';
        $appsp = AppTools::registerApps();
        $appbs = AppTools::registerBaseApps();

        foreach ($appsp as $one => $val) {
            if ($one == $appname) {
                return ('simple');
            }
        }

        foreach ($appbs as $one => $val) {
            if ($val['name'] == $appname) {
                return ('base');
            }
        }

        return ($apptype);
    }