added switch to make progress disapear (batch processing)