add safety check in main.js to stop code from running in production