change mode of all targets if _MODE empty