-my $line = shift || "$main::data/user_asc";
-return (1, DXUser::export($line));
+
+$line ||= 'user_json';
+my ($fn) = split /\s+/, $line;
+unless ($fn && $fn eq 'user_json') {
+ $fn =~ s|[/\.]||g;
+ $fn = "/tmp/$fn";
+}
+
+my @out = DXUser::export($fn);
+
+return (1, @out);
+
+