fix a bunch of harmless warnings