gem file and index