updated CI sim code