changed endpoint interface