Inclusion Criteria:  migraine or cluster headache diagnosis based on ICHD 3 criteria at least 2 attacks each month onset of headache syndrome before the age of 50 if multiple headache syndromes coexist: attacks are clearly distinguishable participant has smartphone that he/she wants to apply for this research  Exclusion Criteria:  chronic migraine patients history of alcohol or illicit drug abuse significant medical comorbidity deemed by the investigator to interfere with the study use of betablockers participating in other academic or commercial trials