ugly hack to produce both compressed and uncompressed keys