state trigger fixes
Treshold key
bug fixes
project commit