eliminate deprectations of specific error and mock