search in registry improvement