remove a bunch of warnings