tries to incorporate a hidden alert if needed