add hysteresis and log to syslog
add start script