correctly simplify registry keys
registry key related tweaks