add unittest
show progressbar when scanning