added trigger errors flag