added unpacking of tarfiles and downloading from server