progress bar for download
cleanup json websockets