turning on warnings and elminating some of the easy ones