add new 'level-trigger' flag
use the 'level-trigger' flag to determine if we should check 'all' or 'any' datapoints
add more type decl