fixed a few problems with script/bootstrap