make the registry private but add a method for getting and setting it