added warning endpoint