patched office gen for faster exports