Handle ancestor imports