fix alarm + add debug mode for the questionnaire