make measure usable as public api
add inverse mode for boolean