fix endpoint configuration