dump with an index