respect config options in main.js