add this flattening path loader thing mostly for some tests I found