remove nearly all warnings