refactor settings.load_target_file