remove debugging stuff for processmag and cosmap