change all endpoint to ENDPOINT