add metadata to result obj for all file types