normalize a couple of error types