found bug for separated files if path is used for outputfile