made RegistryValue more robust & easy to debug