new method called spawn_auto for auto compile