add repr_with_error and repr_args