better compression and base64