added new imlementation of base64