added syslog support
fixed if ets is false or true