added option to disable progress bar (to allow this to run better as a child_process)