fix new paths
make readPackFileFromBuffer actually return data, not just offsets