handlin' the errors