The people who wrote the bible werent always being literal, which also means that peoole who interpret its writings literaly are incorrect... So dont criticize the bible, criticize the people who perhaps interpret it incorrectly.
I once criticized the bible as idiocy written by 2000 year old ignorant goatherders, all out of my own ignorance, but it is a far more sophisticated and well written document that I ever imagined now that I have taken some time to study it...
Now be careful in your initial knee-jerk reaction to what I just said...