handleError renamed to next