minify main for performance