fixes for loading files from Sampler object