updated files to match the move to TCode as a library