will need to clean this up.. adding this from my Codex meetup repo, seems useful.. need more compression algorithms