handle metadata specially instead of indexing arbitrarily