add Task#state