added manual attach detect
simplified dead_batt check
simplified current reduction