added detection of history writes by WRF and notification to the master process