set up progress bar
support writing .edn.gz