why `all` and `namespace` are inside `if (export == 'none')`? that is impossible to happen