feat: modern_diag add calls to write_data (#1320)