make batch processing a function in get_pulse
set trunk_dir automatically