fix bunch of warnings