added pregress bar stuff back in