Source migration from ballerts4.5 branch of ballerts project