rename endpoint to addr for consistency