adapted ci.sh