base64 functions now in the library