registered the structure block and cleaned up reference classes