simplify the base64 logic minutely