improved plotting and bundle adjustment