toc: fix import
build: dependency checking