made error id'ing more sane