added has_errors attribute on charge