bug fixes and added side bearings control