updated code for task tcbs, along with support code, still errors in compile