support text export
fix DEPRECATION WARNING