some namespace related refactoring, basis.resolveNSFilename implemented