added debug to base64 decode