Before hiring a contractor, ask if their insurance covers shoddy and not-to-code work. They may not even know. Insurance companies - not famous for looking out for the 'little guy' - likely do not cover poor workmanship unless you can prove actual physical damage to your home such as dry rot, mold, water damage, etc. was caused by their client's ineptitude.