cleanup and warnings
fixed warnings and updated libs