corrected migration and connected main.js