faster export code, no select for export anymore