removed external use of basename
chunk paths are returned as a list