Meister Eckhart says God created us flawed for a purpose.
I was thinking it is because of our flaws, we get to participate in our own evolution and awakening. Here's where our freewill can turn to God and be led, or we can turn to our ego and delay our awakening.
My flaws provide an opening for God and I to work together on this project of me. The foibles in my past turned out to be great teachers. As I flex my spiritual muscles, so to speak, I get stronger and clearer and in a deeper relationship with God.
So, it seems I need to thank God for my flaws. Never thought I'd ever say that!!!