implement base64 by hand because i should have in the first place :'(