made endpoint configururable