added battwarn setting