make warning alerts optional