more attempts at binary and base64 handling