modified ci script