add Task state flag