finishing ref lookup method. adding logic to deal with ref lookups that return 0 or >1 results. adding more detailed debug logging. switching to using fqdn for monitor name instead of hostname