detect root object in BUILD submethod