how would you write to the registry?