comment out getting endpoint name from configuration the new way (just added this in) as it's not working as expected.