when would pathToPartition be null? don't we want to always have at least an empty map instead?