small fixes to initialize TEC