add progressbar and check some little bug