file path generation fix