add ability to get canonicalDataFile from string
add some logging