add main var for auto test