refactored using eZSys::indexDir()