use num-gen and progressbar from klib