added fn to decode base64 strings