add config lookups and multiple endpoints