update filename, add index