change metadata_path back to file in sp configuration to keep old code compatible