add battery status check and parsing of hat list