improved voltage error handling