added two useful function to speed up looping over events, LoadNoTrees and ResetBooleans