refactored some of remote_syslog stuff