resolves folder hierarchy as actual namespace path; added index.js checking;