added automated erroring