fix for output file paths