error handlers are now normal cork handlers; wrote tests around error handling