add tempfile to grid.export call