adding base64 encode option