move to unsigned long
allow passage of a particular output stream to the progress bar