kinect compatibility and got rid of some warnings