added automatic new flag trigger