helper script to run dump and extract errors