alerm setup and output