bug: do not use task state in teh ID