added support for batch mode in search/list action, now writing logs to STDERR instead of STDOUT