fixed a bunch or warnings
some more warning fixing