catch attribute errors in new-state