some fixes to tcc manager