added registry functions