first attempt at automated erroring
merged