output meta data and index files