wip: global thresholder proof of concept