converted all file paths to os.path.join