added synchronized keyword to several registry methods