build: fixing dependency checking for tocs
build: reducing overbuilds