added alerts for debugging