changes to snapshot bash and indexing new files