removes unneeded dependencies and makes base64 validation more strict references #209