fixed file path handling