fixing path-related problem with files