add alarm middleware