started building callback objects in main.js