fixed issue with files that are not base64 encoded
needed lib