TODO (need to dig old NDA code to extract the safe parts, takes time and energy…)