moved registry to separate file