adding in main.js, will split later