add generated main to aot