update & clean manifest