fixed (tons of) warnings