fix syslog bugs
Initial commit