add progressbar for console