ENH: dirs: more appropriate structure