add flush and some messages to ci.py