set external cls flag in init