update base, media and index