add gzip support for cache files
improve error message for version assertions
0.2.1