a ton of warning fixes