fix lack of error handling