added feature to download logs