I am not sure we should be doing this here. If we are not passing the infile correctly, we should fix it in the config parser, I think