some cleanup in boot.js