one more bit of refactoring in start.js