this is probably the best solution to this problem but I want to experiment with generating a library from a hierarchy dataset