add contract inheri tree linker