update map and index file