added syslog and gethostname