refactoring registerObject and schema description