updated utils to use a binary check rather base64-check