update registry