modify boot.js to advoid testing twice.