add progress bar for memory