hide globals in csv export related code