get rid of base64 dependency