progress bar extracted from yapm