partway through error handling