refactor OLAP VDirectory code