replace alarm with messages generated by an internal thread