refactored Registry to accept any kind of object