factor out get_synergy_config
FIXME re testing role