fixed all compile errors so far with tcb(s)