Inclusion Criteria:  type 2 diabetes by ICD code HbA1c continuously ≥8.0% for ≥1 year despite ≥2 clinic appointments over past year hypertension by ICD code poor hypertension control (BP >140/90 mm Hg) uses a smartphone can read/speak English can provide informed consent  Exclusion Criteria:  dementia, psychosis, or life-limiting illness acute coronary event in past year hypoglycemic seizure/coma over the past year residence in a nursing home use of an insulin pump are or plan to become pregnant