cleanup mpre globals