more work on recursion, release registry key