rewrite bootstrap.sh