added flashlight checker