connect to the battery and ups