tweaks to main.js