modify file path handling