add main in init