flush redis after connection established, improve bulk.sh