add endpoint to return value