adding syslog code