another silly error handling update