camera calibration and some other stuff