pretti alert/message adjusted, adjusted error flags