enumerations conversion stuff, compression util and minor tweaks