readDir now returns nested object