fixed a lot of warnings, also made some xcomposite preparations