moved to main.js