version 1.2: added compression
version 1.4