replacing candidate api endpoints