to add endpoint interface