added better fail detect for when arduino stops responding, not yet working well