add progressbar and deprecated function.