added registry refresh.