added bz2 support (untested)