use FQDN for monitor-slave config, code cleanup