add prepros code to main.js