progress

added onprogress function