You are defending a lost cause. God gave them orders on how to enslave people. That's not a moral god. God also commanded to kill someone because he was working on the Sabbath, that's not a moral and logical god, that's a barbaric god and just shows the mentality of the people who wrote the book.