added some debugging for fileprep