add error handling section